Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 3 - Printer Drivers / Using Resources in Drivers


Defining the Imaging System Type of Your Driver

You must include an imaging system ('isys') resource in your printer driver to tell QuickDraw GX which imaging system your driver uses. The imaging system resource is described on page 6-33 in the chapter "Printing Resources." You must include exactly one of these resources, and it must contain one of the imaging system constants that are shown in Table 3-10.
Table 3-10 Imaging system values
ConstantExplanation
gxRasterPrinterTypeThe driver works with raster printing devices
gxPostscriptPrinterTypeThe driver works with PostScript printing devices
gxVectorPrinterTypeThe driver works with vector printing devices

The ImageWriter II printer is a raster printing device; thus, its imaging system resource specifies the gxRasterPrinterType value, as shown in Listing 3-21.

Listing 3-21 The imaging system resource for the ImageWriter II printer driver

resource gxImagingSystemSelectorType (gxImagingSystemSelectorID,
                                             sysHeap, purgeable)
{
   gxRasterPrinterType
};

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help